package com.testing.sunnycommon.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Classname SunnyResult
 * @Description 类型说明
 * @Date 2023/5/29 21:35
 * @Created by 特斯汀Roy
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("运行结果概况")
public class SunnyResult {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long projectId;
    private Long buildOrder;
    private Long moduleCount;
    private Long caseCount;
    private Long stepCount;
    private Long passCount;
    private Long failCount;
    private Long skippedCount;
    //设置了一下时间类型的时区和格式
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime executeTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime finishTime;
    private String executor;


}
